<tr>
    <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td width="4" class="shadowleft"><img src="/templates/images/space.gif" width="4" height="1"></td>
                    <td>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                                <tr>
                                    <td bgcolor="#000000">
                                        <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td width="444">
                                                        <a href="#" target="_self">
                                                            <img src="/templates/images/bannertop.jpg" width="444" height="116">
                                                        </a>
                                                    </td>
                                                    <td valign="top" style="padding-right:10px; padding-top:10px; padding-bottom:15px;">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tbody>
                                                                <tr>
                                                                    <td class="fontw">
                                                                        <div align="right">Hôm nay: 
                                                                            <script language="JavaScript1.2">
                                                                                <!-- Begin
                                                                                var months=new Array(13);
                                                                                months[1]="tháng 1";
                                                                                months[2]="tháng 2";
                                                                                months[3]="tháng 3";
                                                                                months[4]="tháng 4";
                                                                                months[5]="tháng 5";
                                                                                months[6]="tháng 6";
                                                                                months[7]="tháng 7";
                                                                                months[8]="tháng 8";
                                                                                months[9]="tháng 9";
                                                                                months[10]="tháng 10";
                                                                                months[11]="tháng 11";
                                                                                months[12]="tháng 12";
                                                                                var time=new Date();
                                                                                var date=time.getDate();
                                                                                var lmonth=months[time.getMonth() + 1];
                                                                                var year=time.getYear();
                                                                                if (year < 2000)    // Y2K Fix, Isaac Powell
                                                                                    year = year + 1900; // Phong Cach So Co., Ltd
                                                                                document.write("<right>" + "Ngày " + date + ",");
                                                                                document.write(" " + lmonth + ", năm " + year + "</right>");
                                                                                // End -->
                                                                            </script>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td class="fontw">
                                                                        <div align="right">
                                                                            <table border="0" align="right" cellpadding="2" cellspacing="0">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <!--if $session != null -->
																						{if $user_loginned != 'none'}
                                                                                            <td>
                                                                                                <a href="/login" class="linkmn">Xin chào {$session}</a>
                                                                                            </td>

                                                                                            <td>
                                                                                                <div align="center">
                                                                                                    <img src="/templates/images/line_w.jpg" width="1" height="8">
                                                                                                </div>
                                                                                            </td>
                                                                                            <!-- if $session=='admin@mpcamera.com' -->
																							{if $user_loginned == "staff" || $user_loginned == 'admin'}
																								{if $user_loginned_staff == "ketoan"}
                                                                                                <td>
                                                                                                    <a href="/admin/order" class="linkmn">Quản trị</a>
                                                                                                </td>
																								{else}
																								<td>
                                                                                                    <a href="/admin/product" class="linkmn">Quản trị</a>
                                                                                                </td>
																								{/if}
                                                                                            {else}
                                                                                                <td>
                                                                                                    <a href="/listorder" class="linkmn">Đơn hàng</a>
                                                                                                </td>
                                                                                            {/if}    
                                                                                            <td>
                                                                                                <div align="center">
                                                                                                    <img src="/templates/images/line_w.jpg" width="1" height="8">
                                                                                                </div>
                                                                                            </td>
                                                                                            <td>
                                                                                                <a href="/logout" class="linkmn">Thoát</a>
                                                                                            </td>
                                                                                        {else}
                                                                                            <td>
                                                                                                <a href="/login" class="linkmn">Đăng nhập</a>
                                                                                            </td>

                                                                                            <td>
                                                                                                <div align="center">
                                                                                                    <img src="/templates/images/line_w.jpg" width="1" height="8">
                                                                                                </div>
                                                                                            </td>
                                                                                            <td>
                                                                                                <a href="/register" class="linkmn">Đăng ký</a>
                                                                                            </td>
                                                                                        {/if}
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </div>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td height="35">&nbsp;</td>
                                                                </tr>
                                                            </tbody>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="bgmenu">
                                        <table border="0" align="left" cellpadding="0" cellspacing="0">
                                            <tbody>
                                                <tr>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/admin/order'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/order'}on{else}off{/if}'">
                                                        <a href="/admin/order" class="linkmn">ĐƠN HÀNG</a>
                                                    </td>
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/admin/user'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/user'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/admin/user" class="linkmn">KHÁCH HÀNG</a>
                                                    </td>
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/admin/product'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/product'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/admin/product" class="linkmn">SẢN PHẨM</a>
                                                    </td>
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/admin/news'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/news'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/admin/news" class="linkmn">TIN TỨC</a>
                                                    </td>
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/admin/promotion'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/promotion'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/admin/promotion" class="linkmn">KHUYẾN MÃI</a>
                                                    </td>
                      
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                     <td class="{if $smarty.server.REQUEST_URI == '/admin/ads'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/admin/ads'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/admin/ads" class="linkmn">QUẢNG CÁO</a>
                                                    </td>
                      
                                                    <td width="2">
                                                        <img src="/templates/images/menu_line.jpg">
                                                    </td>
                                                    <td class="{if $smarty.server.REQUEST_URI == '/'}on{else}off{/if}" onmouseover="this.className='on'" onmouseout="this.className='{if $smarty.server.REQUEST_URI == '/'}on{else}off{/if}'" onclick="mClk_topmn(this)">
                                                        <a href="/" class="linkmn">TRANG CHỦ</a>
                                                    </td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td width="4" class="shadowright">
                        <img src="/templates/images/space.gif" width="4" height="1">
                    </td>
                </tr>
            </tbody>
        </table>
    </td>
</tr>